<script>
import AdvancedFilters from "@/components/AdvancedFilters/index.vue";
import DropdownFilter from "@/components/DropdownFilter.vue";

export default {
  name: "DocFilters",
  components: {DropdownFilter, AdvancedFilters},
}
</script>
<template>
  <div>
    <DropdownFilter></DropdownFilter>
    <el-dropdown class="dropdown-filter" trigger="click" :hide-on-click=false>
      <div>
        <span>本人排名：全部<i class="el-icon-caret-bottom el-icon--right"></i></span>
      </div>
      <el-dropdown-menu class="dropdown-filter">
        <el-dropdown-item>第1名+独著</el-dropdown-item>
        <el-dropdown-item>第1名+通讯作者</el-dropdown-item>
        <el-dropdown-item>全部</el-dropdown-item>
      </el-dropdown-menu>
    </el-dropdown>
    <AdvancedFilters></AdvancedFilters>
    <el-dropdown class="order-dropdown" trigger="click">
      <div>
        <span><i class="el-icon-sort-up el-icon--right"></i>发表时间</span>
      </div>
      <el-dropdown-menu class="dropdown-filter">
        <el-dropdown-item>第1名+独著</el-dropdown-item>
        <el-dropdown-item>第1名+通讯作者</el-dropdown-item>
        <el-dropdown-item>全部</el-dropdown-item>
      </el-dropdown-menu>
    </el-dropdown>
  </div>
</template>

<style scoped>
.dropdown-filter::after {
  content: ' ';
  display: inline-block;
  border-right: 1px solid #efefef;
  height: 20px;
  line-height: 40px;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -10px;
}

.order-dropdown {
  position: absolute;
  right: 0px;
  font-size: 14px;
  width: 120px;
}

.dropdown-filter {
  font-size: 14px;
  display: inline-block;
  padding: 10px;
}
</style>
